﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>新闻中心</title>
    <link rel="stylesheet" href="css/default.css" />
    <script type="text/javascript" src="js/jquery1.42.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.source.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            $.getJSON("/API/VIEWAPI.ashx?Action=Commanage_GETLMLIST&r=" + Math.random(), {}, function (resultData) {

                if (resultData.ErrorMsg == "") {
                    var lm = resultData.Result;
                    if (lm) {
                        $(".sideMenu").empty();
                        $(lm).each(function (i, m) {
                            $(".sideMenu").append('<h3><em></em>' + m.Name + '</h3>');
                            var html = '<ul>';
                            $(m.Item).each(function (inx, itm) {
                                html += '<li dataid=' + itm.ID + '>' + itm.Name + '</li>';
                            });
                            html += '</ul>';
                            $(".sideMenu").append(html);
                        })
                        $(".sideMenu").slide({
                            titCell: "h3",
                            targetCell: "ul",
                            defaultIndex: 0,
                            effect: "slideDown",
                            delayTime: 300,
                            trigger: "click",
                            defaultPlay: true
                        });
                        $(".sideMenu ul li").click(function () {
                            $(".xzlm").text($(this).text()).attr("dataid", $(this).attr("dataid"));
                            $(".key").val('');
                            getData(1, 10);
                        });

                        $(".sideMenu ul li").eq(0).trigger("click");
                    }//图片新闻
                }
            });
            $(".query").click(function () {
                getData(1, 10);
            });
        })
        function getData(p, c) {
            $.getJSON('/API/VIEWAPI.ashx?Action=Commanage_GETNRLIST', { P1: $(".xzlm").attr("dataid"), p: p, pagecount: c, P2: $(".key").val() }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    var list = resultData.Result;
                    $(".index-new-list").empty();
                    $(list).each(function (i, m) {
                        $(".index-new-list").append('<li><a target="_blank" href="news-detailed.html?id=' + m.ID + '">' +
                                    '<b class="pull-left word-break"><i>•</i>' + m.Title + '</b><span class="pull-right c999 ft12">' + m.CRDate.substring(0, 10) + '</span>' +
                                '</a></li>');
                    })
                    //var Total = resultData.Result1;//总数量
                }
            })
        }
    </script>
</head>

<body>
    <div class="cont-box">
        <div class="cont-center">
            <div class="top">
                <img src="images/top-img.png"  style="height:120px"/>
            </div>
            <div class="nav">
                <ul>
                    <li>
                        <a href="index.html">网站首页</a>
                    </li>
                    <li>
                        <a href="news.html" class="active">新闻中心</a>
                    </li>
                  
                    <li>
                        <a href="news-zlzs.html">项目展示</a>
                    </li>

                </ul>
            </div>
            <!--banner-->
            <div class="mt15 banner-new">
                <img src="images/new.png" />

            </div>
            <!--新闻-->
            <div class="news overflow mt15">
                <div class="pull-left left-box">
                    <div class="sm-banner-new">
                        <img src="images/sm-news.png" />
                    </div>

                    <div class="sideMenu mt10">
                    </div>
                    <!-- sideMenu End -->
                </div>
                <div class="pull-right right-box">
                    <div class="border-box" style="min-height: 400px;">
                        <div class="border-cont">
                            <div class="nav-bar mb15 ml5 mr5">
                                <img src="images/map.png" style="width:inherit;">
                                <a href="index.html">首页 </a>>
                                <a href="news.html"> 新闻中心</a> > <span class="xzlm"></span>
                                <div class="input-box pull-right">
                                    <input type="text" placeholder="请输入关键字" class="form-control key" style="width: 250px;" />
                                    <span class="input-group-addon query" style="cursor:pointer;">搜索</span>
                                </div>
                            </div>
                            <ul class="index-new-list mr5 ml5"></ul>
                        </div>
                    </div>
                </div>
            </div>
            <!--底部-->
            <div class="foot mt15 ">
                <div class="foot-map ">
                    <a>首页</a>|
                    <a>新闻中心</a>|
                    <a>项目展示</a>|
                </div>
                <p class="c666 mt10 ">公司版权所有</p>
            </div>
        </div>
    </div>
</body>

</html>